package com.wavehi.pojo;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

import java.util.Observer;

import static org.junit.jupiter.api.Assertions.*;

/**
 * @Author WaveHi
 * @Date 25/10/2021 下午 9:45
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
//@ExtendWith(SpringExtension.class)
//@ContextConfiguration("classpath:spring-new-function.xml")
@SpringJUnitConfig(locations = {"classpath:spring-new-function.xml"})
class UseJUnit5 {
    @Autowired
    private User user;

    @Test
    void testToString() {
        assertNotNull(user);
    }
}